package com.beiming.libra.domain.dto.requestdto;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import com.beiming.libra.common.constants.LibraConst;
import com.beiming.libra.common.constants.ValidateMessage;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 邮箱dto
 * 
 * @author weibo
 */
@ApiModel("邮箱dto")
@Data
public class EmailRequestDTO implements Serializable {

  private static final long serialVersionUID = -2623541251595677383L;

  /**
   * 邮箱
   */
  @ApiModelProperty(value = "邮箱", required = true)
  @NotBlank(message = ValidateMessage.EMAIL_NOT_BLANK)
  @Pattern(regexp = LibraConst.REGEX_EMAIL, message = ValidateMessage.EMAIL_INCORRECT)
  private String email;
}
